forum

home / developersection / forums / default value of a function pointer in vc

Default value of a function pointer in VC

Royce Roy 3044 12-Feb-2013

Hi!

What is the default value of a function pointer in VC++? (Apparently it can't be NULL, so what is it?)

How is this program supposed to behave and why?

struct S { void (*f)(); };

int Main()
{
    S s = S();
    s.f();   // What is the value of s.f?
}

Please Help me ASAP!

Thanks in advance


Updated on 13-Feb-2013
Can you answer this question?

Answer

1 Answers

Liked By